//
//  Items.m
//  GiftSay
//
//  Created by QQn1993 on 16/1/7.
//  Copyright © 2016年 liyinkai. All rights reserved.
//

#import "Items.h"

@implementation Items

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.price = [aDecoder decodeObjectForKey:@"price"];
        self.cover_icon = [aDecoder decodeObjectForKey:@"cover_icon"];
        self.like = [aDecoder decodeObjectForKey:@"like"];
        self.ID = [aDecoder decodeObjectForKey:@"ID"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.price forKey:@"price"];
    [aCoder encodeObject:self.cover_icon forKey:@"cover_icon"];
    [aCoder encodeObject:self.like forKey:@"like"];
    [aCoder encodeObject:self.ID forKey:@"ID"];
}

@end
